<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_difference_kernel_matrix.html">DifferenceKernelMatrix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_difference_kernel_matrix-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>SVM ranking matrix.  
 <a href="classshark_1_1_difference_kernel_matrix.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_difference_kernel_matrix_8h_source.html">shark/LinAlg/DifferenceKernelMatrix.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a04b3f85bd7ce3218c2946fc6a9cc47d6" id="r_a04b3f85bd7ce3218c2946fc6a9cc47d6"><td class="memItemLeft" align="right" valign="top">typedef CacheType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a></td></tr>
<tr class="separator:a04b3f85bd7ce3218c2946fc6a9cc47d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a75322ec30dee27e1a7343e71853bd4d6" id="r_a75322ec30dee27e1a7343e71853bd4d6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a75322ec30dee27e1a7343e71853bd4d6">DifferenceKernelMatrix</a> (<a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;kernel, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;dataset, std::vector&lt; std::pair&lt; std::size_t, std::size_t &gt; &gt; const &amp;pairs)</td></tr>
<tr class="memdesc:a75322ec30dee27e1a7343e71853bd4d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <br /></td></tr>
<tr class="separator:a75322ec30dee27e1a7343e71853bd4d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0d680c150fb59ca448ae407304f3ec6" id="r_ac0d680c150fb59ca448ae407304f3ec6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#ac0d680c150fb59ca448ae407304f3ec6">operator()</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:ac0d680c150fb59ca448ae407304f3ec6"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:ac0d680c150fb59ca448ae407304f3ec6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab999126ee7b40e3c33a05a38d685d81a" id="r_ab999126ee7b40e3c33a05a38d685d81a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">entry</a> (std::size_t i, std::size_t j) const</td></tr>
<tr class="memdesc:ab999126ee7b40e3c33a05a38d685d81a"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a single matrix entry  <br /></td></tr>
<tr class="separator:ab999126ee7b40e3c33a05a38d685d81a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac4a479d840e95943b5bcd1a79f4d24b" id="r_aac4a479d840e95943b5bcd1a79f4d24b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#aac4a479d840e95943b5bcd1a79f4d24b">row</a> (std::size_t i, std::size_t start, std::size_t end, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a> *storage) const</td></tr>
<tr class="memdesc:aac4a479d840e95943b5bcd1a79f4d24b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the i-th row of the kernel matrix.  <br /></td></tr>
<tr class="separator:aac4a479d840e95943b5bcd1a79f4d24b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adefbf742ea14714a2c1db0e59fbc418c" id="r_adefbf742ea14714a2c1db0e59fbc418c"><td class="memTemplParams" colspan="2">template&lt;class M &gt; </td></tr>
<tr class="memitem:adefbf742ea14714a2c1db0e59fbc418c"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#adefbf742ea14714a2c1db0e59fbc418c">matrix</a> (blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;storage) const</td></tr>
<tr class="memdesc:adefbf742ea14714a2c1db0e59fbc418c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the kernel-matrix.  <br /></td></tr>
<tr class="separator:adefbf742ea14714a2c1db0e59fbc418c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87178ad78ad395a321a976b3e52bd20d" id="r_a87178ad78ad395a321a976b3e52bd20d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a87178ad78ad395a321a976b3e52bd20d">flipColumnsAndRows</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a87178ad78ad395a321a976b3e52bd20d"><td class="mdescLeft">&#160;</td><td class="mdescRight">swap two variables  <br /></td></tr>
<tr class="separator:a87178ad78ad395a321a976b3e52bd20d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3365839ee242950f1f2e755c5634f027" id="r_a3365839ee242950f1f2e755c5634f027"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a3365839ee242950f1f2e755c5634f027">size</a> () const</td></tr>
<tr class="memdesc:a3365839ee242950f1f2e755c5634f027"><td class="mdescLeft">&#160;</td><td class="mdescRight">return the size of the quadratic matrix  <br /></td></tr>
<tr class="separator:a3365839ee242950f1f2e755c5634f027"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a5bb9c8d113193b154331c1a8fd41a1fc" id="r_a5bb9c8d113193b154331c1a8fd41a1fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a5bb9c8d113193b154331c1a8fd41a1fc">m_kernel</a></td></tr>
<tr class="memdesc:a5bb9c8d113193b154331c1a8fd41a1fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">underlying kernel function  <br /></td></tr>
<tr class="separator:a5bb9c8d113193b154331c1a8fd41a1fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43a940b138c388c62acd5e705f676646" id="r_a43a940b138c388c62acd5e705f676646"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const  &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a43a940b138c388c62acd5e705f676646">m_dataset</a></td></tr>
<tr class="memdesc:a43a940b138c388c62acd5e705f676646"><td class="mdescLeft">&#160;</td><td class="mdescRight">underlying set of points  <br /></td></tr>
<tr class="separator:a43a940b138c388c62acd5e705f676646"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade6fb118ba57858b7985f83823c2448a" id="r_ade6fb118ba57858b7985f83823c2448a"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::tuple&lt; std::size_t, std::size_t, std::size_t, std::size_t &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#ade6fb118ba57858b7985f83823c2448a">m_indices</a></td></tr>
<tr class="memdesc:ade6fb118ba57858b7985f83823c2448a"><td class="mdescLeft">&#160;</td><td class="mdescRight">pairs of points defining the matrix components  <br /></td></tr>
<tr class="separator:ade6fb118ba57858b7985f83823c2448a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, class CacheType&gt;<br />
class shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;</div><p>SVM ranking matrix. </p>
<dl class="section user"><dt></dt><dd>The <a class="el" href="classshark_1_1_difference_kernel_matrix.html" title="SVM ranking matrix.">DifferenceKernelMatrix</a> class is kernel matrix with entries of the form \( K_{i,j} = k(g_i, g_j) - k(g_i, s_j) - k(s_i, g_j) + k(s_i, s_j) \) where for data consisting of pairs of point \( (g_i, s_i) \). This matrix form is needed in SVM ranking problems. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00064">64</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a04b3f85bd7ce3218c2946fc6a9cc47d6" name="a04b3f85bd7ce3218c2946fc6a9cc47d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04b3f85bd7ce3218c2946fc6a9cc47d6">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef CacheType <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00067">67</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a75322ec30dee27e1a7343e71853bd4d6" name="a75322ec30dee27e1a7343e71853bd4d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75322ec30dee27e1a7343e71853bd4d6">&#9670;&#160;</a></span>DifferenceKernelMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::DifferenceKernelMatrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>kernel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::pair&lt; std::size_t, std::size_t &gt; &gt; const &amp;&#160;</td>
          <td class="paramname"><em>pairs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00070">70</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_data_view.html#a4c811224fc77356555fcecfb5b41cb65">shark::DataView&lt; DatasetType &gt;::batch()</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ade6fb118ba57858b7985f83823c2448a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_indices</a>, and <a class="el" href="classshark_1_1_data_view.html#a892be77ecf008f78e44452b1a201980a">shark::DataView&lt; DatasetType &gt;::positionInBatch()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab999126ee7b40e3c33a05a38d685d81a" name="ab999126ee7b40e3c33a05a38d685d81a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab999126ee7b40e3c33a05a38d685d81a">&#9670;&#160;</a></span>entry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a> <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::entry </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00094">94</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="group__shark__globals.html#ga73034ee5639176b0d45e1059859d0f0a">shark::Data&lt; Type &gt;::batch()</a>, <a class="el" href="namespaceshark.html#a1531880b9b4076854b0b26441d353242">shark::getBatchElement()</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a43a940b138c388c62acd5e705f676646">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_dataset</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ade6fb118ba57858b7985f83823c2448a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_indices</a>, and <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a5bb9c8d113193b154331c1a8fd41a1fc">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_kernel</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#adefbf742ea14714a2c1db0e59fbc418c">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ac0d680c150fb59ca448ae407304f3ec6">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::operator()()</a>, and <a class="el" href="classshark_1_1_difference_kernel_matrix.html#aac4a479d840e95943b5bcd1a79f4d24b">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::row()</a>.</p>

</div>
</div>
<a id="a87178ad78ad395a321a976b3e52bd20d" name="a87178ad78ad395a321a976b3e52bd20d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87178ad78ad395a321a976b3e52bd20d">&#9670;&#160;</a></span>flipColumnsAndRows()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::flipColumnsAndRows </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>swap two variables </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00137">137</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ade6fb118ba57858b7985f83823c2448a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_indices</a>, and <a class="el" href="namespaceshark.html#a3fffe112e8e09ea8f41e4fb7113e93ee">shark::swap()</a>.</p>

</div>
</div>
<a id="adefbf742ea14714a2c1db0e59fbc418c" name="adefbf742ea14714a2c1db0e59fbc418c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adefbf742ea14714a2c1db0e59fbc418c">&#9670;&#160;</a></span>matrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<div class="memtemplate">
template&lt;class M &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::matrix </td>
          <td>(</td>
          <td class="paramtype">blas::matrix_expression&lt; M, blas::cpu_tag &gt; &amp;&#160;</td>
          <td class="paramname"><em>storage</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the kernel-matrix. </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00128">128</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>, and <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a3365839ee242950f1f2e755c5634f027">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::size()</a>.</p>

</div>
</div>
<a id="ac0d680c150fb59ca448ae407304f3ec6" name="ac0d680c150fb59ca448ae407304f3ec6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0d680c150fb59ca448ae407304f3ec6">&#9670;&#160;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a> <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::operator() </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return a single matrix entry </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00090">90</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>.</p>

</div>
</div>
<a id="aac4a479d840e95943b5bcd1a79f4d24b" name="aac4a479d840e95943b5bcd1a79f4d24b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac4a479d840e95943b5bcd1a79f4d24b">&#9670;&#160;</a></span>row()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::row </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_difference_kernel_matrix.html#a04b3f85bd7ce3218c2946fc6a9cc47d6">QpFloatType</a> *&#160;</td>
          <td class="paramname"><em>storage</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Computes the i-th row of the kernel matrix. </p>
<p>The entries start,...,end of the i-th row are computed and stored in storage. There must be enough room for this operation preallocated. </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00122">122</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>.</p>

</div>
</div>
<a id="a3365839ee242950f1f2e755c5634f027" name="a3365839ee242950f1f2e755c5634f027"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3365839ee242950f1f2e755c5634f027">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>return the size of the quadratic matrix </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00144">144</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ade6fb118ba57858b7985f83823c2448a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::m_indices</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#adefbf742ea14714a2c1db0e59fbc418c">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::matrix()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a43a940b138c388c62acd5e705f676646" name="a43a940b138c388c62acd5e705f676646"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43a940b138c388c62acd5e705f676646">&#9670;&#160;</a></span>m_dataset</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_data.html">Data</a>&lt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt; const&amp; <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::m_dataset</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>underlying set of points </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00152">152</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>.</p>

</div>
</div>
<a id="ade6fb118ba57858b7985f83823c2448a" name="ade6fb118ba57858b7985f83823c2448a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade6fb118ba57858b7985f83823c2448a">&#9670;&#160;</a></span>m_indices</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::tuple&lt;std::size_t, std::size_t, std::size_t, std::size_t&gt; &gt; <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::m_indices</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>pairs of points defining the matrix components </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00155">155</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a75322ec30dee27e1a7343e71853bd4d6">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::DifferenceKernelMatrix()</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>, <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a87178ad78ad395a321a976b3e52bd20d">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::flipColumnsAndRows()</a>, and <a class="el" href="classshark_1_1_difference_kernel_matrix.html#a3365839ee242950f1f2e755c5634f027">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::size()</a>.</p>

</div>
</div>
<a id="a5bb9c8d113193b154331c1a8fd41a1fc" name="a5bb9c8d113193b154331c1a8fd41a1fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bb9c8d113193b154331c1a8fd41a1fc">&#9670;&#160;</a></span>m_kernel</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a> , class CacheType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_abstract_kernel_function.html">AbstractKernelFunction</a>&lt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>&gt; const&amp; <a class="el" href="classshark_1_1_difference_kernel_matrix.html">shark::DifferenceKernelMatrix</a>&lt; <a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">InputType</a>, CacheType &gt;::m_kernel</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>underlying kernel function </p>

<p class="definition">Definition at line <a class="el" href="_difference_kernel_matrix_8h_source.html#l00149">149</a> of file <a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_difference_kernel_matrix.html#ab999126ee7b40e3c33a05a38d685d81a">shark::DifferenceKernelMatrix&lt; InputType, CacheType &gt;::entry()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/LinAlg/<a class="el" href="_difference_kernel_matrix_8h_source.html">DifferenceKernelMatrix.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
